﻿/**
 * @author sminutoli
 * version 1.0
 */
import com.dinmax.flash.central.extension.user.Contact 

class com.dinmax.flash.central.extension.user.Contacts 
extends com.dinmax.flash.common.collection.Collection {
	
	public function addItem(id:Number, contact:Contact):Void {
		super.addItem(String(id), contact);
		return;
	};
	
	public function getItem(id:Number):Contact {
		return Contact(super.getItem(String(id)).getValue());
	};
	
	public function getItems():Array {
		var a:Array = super.getItems();
		var b:Array = new Array();
		for (var i : Number = 0; i < a.length; i++) {
			b.push(a[i].getValue());
		}
		return b;
	};
	
};